package com.blog.dao;

import com.blog.pojo.MLy;
import com.blog.pojo.MLyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MLyMapper {
    int countByExample(MLyExample example);

    int deleteByExample(MLyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MLy record);

    int insertSelective(MLy record);

    List<MLy> selectByExampleWithBLOBs(MLyExample example);

    List<MLy> selectByExample(MLyExample example);

    MLy selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MLy record, @Param("example") MLyExample example);

    int updateByExampleWithBLOBs(@Param("record") MLy record, @Param("example") MLyExample example);

    int updateByExample(@Param("record") MLy record, @Param("example") MLyExample example);

    int updateByPrimaryKeySelective(MLy record);

    int updateByPrimaryKeyWithBLOBs(MLy record);

    int updateByPrimaryKey(MLy record);

	List<MLy> selectOrderByTime();
   
	int updatePraiseById(@Param("id")Integer id,@Param("zan")Integer zan); 

	int selectZanById(Integer id);
 
	int updatePraiseDeById(@Param("id")Integer id,@Param("zan")Integer zan); 
}